﻿using System;

namespace fm2
{
	public class LogItem : INodeElement
	{
		public string Time { get; set; }
		public string Name { get; set; }
		public string Owner { get; set; }
		public StatusElement Status { get; set; }
		public bool _Selected { get; set; }
		
		public LogItem() {}
		public LogItem(FileItem item)
		{
			Name = item.Name;
			Owner=item.Owner;
			Status=item.Status;
			Time=item.Time;
		}
		
		public override string ToString()
		{
			return string.Format("{0:yyyy-MM-dd HH:mm:ss} : {1} : {2} : {3}", Time, Owner, Status, Name);
		}
	}
}
